Skip to content

chore: modernize navigation-sample and map-sample builds#26

Open
dkhawk wants to merge 6 commits intomainfrom
fix/add-utils-dep
Open

chore: modernize navigation-sample and map-sample builds#26
dkhawk wants to merge 6 commits intomainfrom
fix/add-utils-dep

Conversation

@dkhawk
Copy link
Copy Markdown

@dkhawk dkhawk commented Mar 12, 2026

Overview

This PR modernizes the build configuration and dependencies for both the navigation-sample and map-sample projects. It migrates the Groovy build scripts to modern Kotlin DSL, implements a centralized Version Catalog, clears out legacy unused dependencies, and brings the samples up to Java 17. It also updates the navigation-sample to use the modern Places SDK v5 features.

Changes Included

  • Kotlin DSL Migration: Replaced all build.gradle and settings.gradle files with their .gradle.kts counterparts in both samples.
  • Version Catalog: Created gradle/libs.versions.toml to unify dependency versions, and configured dependencyResolutionManagement in settings.gradle.kts for both samples.
  • Java 17: Updated the compile and JVM targets to Java 17.
  • Dependency Cleanup: Removed 16 unused dependencies from both samples (including unused androidx.* modules, joda-time, transport modules, and kotlin-reflect), significantly reducing build bloat.
  • Places SDK v5: Updated the navigation-sample to use the new Places API fields (DISPLAY_NAME, LOCATION).
  • Architecture Refactor: Extracted the Places SDK initialization logic from SplashScreenActivity into a properly configured NavigationSampleApplication class.
  • Developer Experience: Added :app:installAndLaunch gradle targets to both samples for one-click CLI deployments.
  • Documentation: Overhauled both README.md files to document the secrets.properties API key setup and the new build commands.
  • Gradle Wrapper: Bumped the gradle wrapper version to 8.13 for modern compliance.

dkhawk added 3 commits March 11, 2026 17:42
This commit includes several modernization efforts and fixes:

- Migrated build scripts from Groovy to Kotlin DSL (build.gradle.kts)

- Implemented Version Catalogs (gradle/libs.versions.toml) for dependency management

- Updated Java target to 17

- Cleaned up 16 unused dependencies (androidx, transport, joda-time, kotlin-reflect)

- Updated Places SDK integration for v5 compatibility (Place.Field.DISPLAY_NAME, place.location, Places.initializeWithNewPlacesApiEnabled)

- Rewrote README with clear setup instructions and added custom installAndLaunch gradle task

- Ignored BOB_DATA directory
- Migrated to Kotlin DSL (build.gradle.kts) and Version Catalog

- Updated Java target to 17

- Cleaned up unused legacy dependencies

- Upgraded Gradle wrapper to 8.13

- Overhauled map-sample README and added installAndLaunch target
- Created NavigationSampleApplication

- Moved Places API initialization and metadata extraction logic from SplashScreenActivity to NavigationSampleApplication

- Registered NavigationSampleApplication in AndroidManifest.xml
@dkhawk dkhawk requested a review from kshirsagarps March 12, 2026 00:11
dkhawk added 3 commits March 11, 2026 18:17
- Sorted dependencies alphabetically

- Synchronized versions between navigation-sample and map-sample

- Corrected kotlin plugin version to 2.1.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant